package org.ziegler.log.analysis.resultFilter;

import org.ziegler.log.analysis.core.SplitColumn;

/**
 * 服务器区过滤
 *
 * @author Ziegler
 * date 2020/8/14 21:05
 */
public class ServerIdResultFilter implements ResultFilter {

    private final int serverId;

    public ServerIdResultFilter(int serverId) {
        this.serverId = serverId;
    }

    @Override
    public boolean test(SplitColumn splitColumn) {
        return splitColumn.getServerId() == serverId;
    }
}
